﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class
    name="UCDArch.RegressionTests.SampleMappings.User, UCDArch.RegressionTests"
    table="Users" >
    <id name="Id" column="UserID" unsaved-value="0">
      <generator class="identity" />
    </id>

    <property name="FirstName" column="FirstName" />
    <property name="LastName" column="LastName" />

    <property name="LoginID" column="LoginID" />
    <property name="Phone" column="Phone" />
    <property name="Email" column="Email" />

    <property name="EmployeeID" column="EmployeeID" />
    <property name="StudentID" column="StudentID" />
    <property name="UserKey" column="UserKey"></property>
    <property name="Inactive" column="Inactive"></property>

    <bag name="UnitAssociations" table="UnitAssociations" inverse="false" cascade="none">
      <key column="UserID" />
      <many-to-many column="UnitAssociationID" class="UCDArch.RegressionTests.SampleMappings.UnitAssociation, UCDArch.RegressionTests" />
    </bag>
    <!--
    <bag name="Permissions" table="Permissions" inverse="false" cascade="none">
      <key column="UserID" />
      <many-to-many column="PermissionID" class="CAESArch.Tests.SampleMappings.Permission, CAESArch.Tests" />
    </bag>-->

  </class>
</hibernate-mapping>